package com.tanhua.dubbo.api;

import com.tanhua.model.db.Report;

import java.util.List;
import java.util.Map;

public interface ReportApi {
    //根据问卷id和用户id查找report
    Report findById(Long userId, Long questionnaireId);

    //保存报告
    Report save(Report report);

    //更新报告
    void update(Report report);

    //根据id查找报告
    Report findOne(Long id);

    //根据userId查找报告
    Map<String, Report> findByUserId(Long userId);

    //根据报告id查找character_result相同的
    List<Report> findSimilar(Long id);
}
